package org.darkforest.model;

import org.darkforest.common.util.DateUtil;

public class MemberWithBLOBs extends Member {
    private String memberQqinfo;

    private String memberSinainfo;

    private String memberPrivacy;
    
    
    private String memberEmailPrivacy;
    private String memberTruenamePrivacy;
    private String memberSexPrivacy;
    private String memberBirthdayPrivacy;
    private String areaPrivacy;
    private String qqPrivacy;
    private String wwPrivacy;


	private boolean avatarChanged = false;			//是否更改头像，默认为否，更新二维码的标志位

	public boolean isAvatarChanged() {
		return avatarChanged;
	}

	public void setAvatarChanged(boolean avatarChanged) {
		this.avatarChanged = avatarChanged;
	}


	//	private String recommendId;//推荐人ID
//
//	public String getRecommendId() {
//		return recommendId;
//	}

//	public void setRecommendId(String recommendId) {
//		this.recommendId = recommendId;
//	}

	public MemberWithBLOBs(){
    	
    }
    public MemberWithBLOBs(Member member){
		super(member.getMemberName(),member.getMemberPasswd(),member.getMemberEmail());
	}
    
    public String getMemberBirthdayStr(){
    	return DateUtil.toDateString(super.getMemberBirthday());
    }
    
    public void setMemberBirthdayStr(String str){
    	super.setMemberBirthday(DateUtil.strToDate(str, DateUtil.DEFAULT_DATE_PATTERN));
    }

    public String getMemberQqinfo() {
        return memberQqinfo;
    }

    public void setMemberQqinfo(String memberQqinfo) {
        this.memberQqinfo = memberQqinfo == null ? null : memberQqinfo.trim();
    }

    public String getMemberSinainfo() {
        return memberSinainfo;
    }

    public void setMemberSinainfo(String memberSinainfo) {
        this.memberSinainfo = memberSinainfo == null ? null : memberSinainfo.trim();
    }

    public String getMemberPrivacy() {
        return memberPrivacy;
    }

    public void setMemberPrivacy(String memberPrivacy) {
        this.memberPrivacy = memberPrivacy == null ? null : memberPrivacy.trim();
    }

	public String getMemberEmailPrivacy() {
		return memberEmailPrivacy;
	}

	public void setMemberEmailPrivacy(String memberEmailPrivacy) {
		this.memberEmailPrivacy = memberEmailPrivacy;
	}

	public String getMemberTruenamePrivacy() {
		return memberTruenamePrivacy;
	}

	public void setMemberTruenamePrivacy(String memberTruenamePrivacy) {
		this.memberTruenamePrivacy = memberTruenamePrivacy;
	}

	public String getMemberSexPrivacy() {
		return memberSexPrivacy;
	}

	public void setMemberSexPrivacy(String memberSexPrivacy) {
		this.memberSexPrivacy = memberSexPrivacy;
	}

	public String getMemberBirthdayPrivacy() {
		return memberBirthdayPrivacy;
	}

	public void setMemberBirthdayPrivacy(String memberBirthdayPrivacy) {
		this.memberBirthdayPrivacy = memberBirthdayPrivacy;
	}

	public String getAreaPrivacy() {
		return areaPrivacy;
	}

	public void setAreaPrivacy(String areaPrivacy) {
		this.areaPrivacy = areaPrivacy;
	}

	public String getQqPrivacy() {
		return qqPrivacy;
	}

	public void setQqPrivacy(String qqPrivacy) {
		this.qqPrivacy = qqPrivacy;
	}

	public String getWwPrivacy() {
		return wwPrivacy;
	}

	public void setWwPrivacy(String wwPrivacy) {
		this.wwPrivacy = wwPrivacy;
	}

}